<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>ES Modules 导出注意事项</title>
</head>
<body>
  <script type="module">
    // import { name, age, default as title} from "./3.index.js"
    import title, { name, age} from "./3.index.js"
    console.log("name", name, "title", title)
    setTimeout(() => {
      console.log("name", name)
    }, 2000);

    import("./3.index.js").then(res => {
      console.log(res, "res")
    })
    
  </script>
</body>
</html>